package create.factory;

public class Client {
    public static void main(String[] args) {
        AbstractFactory carFactory = new CarFactory();
        AbstractProduct car = carFactory.createProduct();
        car.run();

        AbstractFactory truckFactory = new TruckFactory();
        AbstractProduct truck = truckFactory.createProduct();
        truck.run();
    }
}
